package com.isoft.controller.sys;

import com.isoft.entity.PageBean;
import com.isoft.service.impl.StopBoardingService;
import com.isoft.service.impl.UrgeBoardingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.isoft.bean.Result;

@Slf4j
@CrossOrigin
@RestController
@RequestMapping("/StopBoarding")
public class StopBoardingController {
    @Autowired
    StopBoardingService stopBoardingService;
    //截止登机消息
    @GetMapping("/getstopBoarding")
    public Result page(@RequestParam(defaultValue = "1") Integer page ,
                       @RequestParam(defaultValue = "10") Integer pageSize)
    {
        log.info("分页查询 ：{},{}" , page , pageSize);
        PageBean pageBean = stopBoardingService.selectStopBoarding(page , pageSize);
        return Result.success(pageBean);
    }
}
